<template>
  <div>
    <!-- <el-tag :type="type">{{ text }}</el-tag> -->
    <div v-if="isname === 'authentication'">
        <el-tag type="primary" v-if="value === 0">未认证</el-tag>
        <el-tag type="success" v-if="value === 1">已认证</el-tag>
    </div>
    <div v-if="isname === 'state'">
        <el-tag type="success" v-if="value === 0">正常</el-tag>
        <el-tag type="danger" v-if="value === 1">停用</el-tag>
    </div>
    <div v-if="isname === 'page1'">
        <el-tag type="success" v-if="value === 0">正常</el-tag>
        <el-tag type="danger" v-if="value === 1">停用</el-tag>
    </div>
    <div v-if="isname === 'page2'">
        <el-tag type="success" v-if="value === 0">正常</el-tag>
        <el-tag type="danger" v-if="value === 1">停用</el-tag>
    </div>
    <div v-if="isname === 'demand'">
        <el-tag type="primary" v-if="value === 1">审核中</el-tag>
        <el-tag type="danger" v-if="value === 2">已拒绝</el-tag>
    </div>
    <div v-if="isname === 'needs'">
        <el-tag type="primary" v-if="value === 0">接单中</el-tag>
        <el-tag type="primary" v-if="value === 1">服务中</el-tag>
        <el-tag type="success" v-if="value === 2">已完成</el-tag>
        <el-tag type="danger" v-if="value === 3">已取消</el-tag>
    </div>
    <div v-if="isname === 'finance'">
        <el-tag type="warning"  v-if="value === 0">待结算</el-tag>
        <el-tag type="primary" v-if="value === 1">结算中</el-tag>
        <el-tag type="success" v-if="value === 2">已结算</el-tag>
        <el-tag type="danger" v-if="value === 3">结算失败</el-tag>
    </div>
    <div v-if="isname === 'rotation'">
        <el-tag type="success" v-if="value === 0">正常</el-tag>
        <el-tag type="danger" v-if="value === 1">停用</el-tag>
    </div>
    <div v-if="isname === 'chassify'">
        <el-tag type="primary" v-if="value === 0">否</el-tag>
        <el-tag type="success" v-if="value === 1">是</el-tag>
    </div>
    <div v-if="isname === 'isquick'">
        <el-tag type="primary" v-if="value === 0">否</el-tag>
        <el-tag type="success" v-if="value === 1">是</el-tag>
    </div>
    <div v-if="isname === 'quoteyi'">
        <el-tag type="primary" v-if="value === 0">未中标</el-tag>
        <el-tag type="success" v-if="value === 1">已中标</el-tag>
    </div>
    <div v-if="isname === 'quotedsh'">
        <el-tag type="primary" v-if="value === 1">待审核</el-tag>
        <el-tag type="danger" v-if="value === 2">已拒绝</el-tag>
    </div>
    <div v-if="isname === 'payment'">
        <el-tag type="primary" v-if="value === 0">待付款</el-tag>
        <el-tag type="success" v-if="value === 1">已付款</el-tag>
        <el-tag type="danger" v-if="value === 2">已退款</el-tag>
        <el-tag type="warning" v-if="value === 3">超购</el-tag>
    </div>
    <div v-if="isname === 'is_change'">
        <el-tag type="primary" v-if="value === 0">初审</el-tag>
        <el-tag type="primary" v-if="value === 1">变更</el-tag>
        <el-tag type="success" v-if="value === 2">正常</el-tag>
    </div>

  </div>
</template>

<script>
export default {
  name: 'mytag',
  props: {
    value: Number,
    isname: {
      type: String
    }
  },
  data () {
    return {

    }
  }

}
</script>
